package org.eerbaar.parser.cky;

import org.eerbaar.parser.core.exe.HasSymbol;
import org.eerbaar.parser.core.exe.SymbolInstance;

public class CKYParserData
    implements HasSymbol {

    private final Levels levels;

    public CKYParserData(SymbolInstance[] sequence) {
        this.levels = new Levels(sequence);
    }

    public Levels getLevels() {
        return levels;
    }

    @Override
    public SymbolInstance next() {
        return this.levels.next();
    }

    @Override
    public void remove(SymbolInstance symbol) {
        this.levels.remove(symbol);
    }

    @Override
    public String toString() {
        return this.levels.toString();
    }

}
